package com.itheima.converter;

import com.itheima.dto.CheckGroupDTO;
import com.itheima.pojo.CheckGroup;

public class CheckGroupConverter {
    /**
     * CheckGroupDTO对象转CheckGroup对象
     */
    public  static CheckGroup checkGroupDTOtoCheckGroup(CheckGroupDTO checkGroupDTO){
        CheckGroup result = new CheckGroup();
        result.setId(checkGroupDTO.getId());
        result.setName(checkGroupDTO.getName());
        result.setCode(checkGroupDTO.getCode());
        result.setHelpCode(checkGroupDTO.getHelpCode());
        result.setSex(checkGroupDTO.getSex());
        result.setRemark(checkGroupDTO.getRemark());
        result.setAttention(checkGroupDTO.getAttention());
        result.setCheckItems(checkGroupDTO.getCheckItems());
        return result;
    }
}
